import axios from '../axios'
export default {
    //投诉查询分页
    complaintPage(data:any) {
        return axios.post('/complaint/page', data)
    },

    //新增投诉
    addComplaint(data:any) {
        return axios.post(`/complaint/insert`, data)
    },

    //修改投诉
    updateComplaint(data:any) {
        return axios.post(`/complaint/updateById`, data)
    },

    //删除投诉
    delComplaintById(id:any) {
        return axios.delete( `/complaint/deleteById/${id}`)
    },

    //处理投诉
    dealComplaintById(id:any) {
        return axios.delete( `/complaint/dealById/${id}`)
    },

}
  